<%inherit file="../body.mako"/>

${next.body()}

<%def name="menus()">
${parent.build_menus(selected="settings")}
</%def>

<%def name="build_sub_menus(selected)">
<%
menus = (
    ("general", url(controller="settings", action="general"), "general settings"),
    ("comments", url(controller="settings", action="comments"), "configure comments"),
    ("notifications", url(controller="settings", action="notifications"), "configure notifications"),
    ("feeds", url(controller="settings", action="feeds"), "configure feeds"),
    ("widgets", url(controller="settings", action="widgets"), "configure widgets"),
)
%>

<ul>
% for name, link, desc in menus:
  % if name == selected:
  <li id="${name.replace(' ', '-')}" class="selected"><a href="${link}" title="${_(desc)}">${name.capitalize()}</a></li>
  % else:
  <li id="${name.replace(' ', '-')}"><a href="${link}" title="${_(desc)}">${name.capitalize()}</a></li>
  % endif
% endfor
</ul>
</%def>
